home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-10-17 | 668 b | 57 lines | [THED/THTH] |
- |
- | RA™
- |
- | TOWER OF HANOI
- |
- | © 1986 COM~LINK & S.Koren
- |
- ≈
- #M;
- 300 150 ∫
- ("!How many disks? " ? D: D. ! "!"
- D. 0 > D. 5 < ¥ ~
- #H,D.,"Left","Right","Middle";)
- #A;
- ≈
- "THE END."
-
- $
- &A
- "Hit any key: " ?§ µ @`
- |
- | Main subroutine
- |
- &H
- 1% D:
- D. 1 = [#Z,2%,3%; ` ]
- D. 1 - D :
- #H,D.,2%,4%,3%;
- #Z,2%,3%;
- #H,D.,4%,3%,2%; `
- |
- | Subroutine for output
- |
- &Z
- "Move " 1% " to " 2% "!" `
-
- |
- | RA title routine
- |
- &M @ #L; 8 A: ( #N; A. 1 - A: A. 0 > ~ ) #L; #O; #P;`
-
- &O
- 40 100 Ω
- "RA™"
- 60 45 Ω
- "© 1986 COM~LINK & S.Koren"
- 80 60 Ω
- "All rights reserved." `
-
- &L
- 35 A: ("•" A. 1 - A: A. 0 > ~ ) "!"`
-
- &N
- "•" 33 A: (" " A. 1 - A: A. 0 > ~ ) "•" "!"`
-
- &P ?§ @ `
- $